/* 全局样式重置和基础样式 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(45deg, #1a237e, #311b92, #4a148c);
  color: #ffffff;
  min-height: 100vh;
}

#root {
  width: 100%;
  min-height: 100vh;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Ant Design 主题覆盖 */
.ant-layout {
  background: transparent !important;
}

.ant-card {
  background: rgba(15, 20, 60, 0.75) !important;
  border: 1px solid rgba(80, 120, 255, 0.4) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

.ant-card-head {
  border-bottom: 1px solid rgba(79, 195, 247, 0.3) !important;
  background: transparent !important;
}

.ant-card-head-title {
  color: #4fc3f7 !important;
  font-weight: 600 !important;
  text-shadow: 0 0 10px rgba(79, 195, 247, 0.5) !important;
}

.ant-card-body {
  color: #ffffff !important;
}

/* 按钮样式 */
.ant-btn-primary {
  background: linear-gradient(135deg, #4fc3f7, #29b6f6) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(79, 195, 247, 0.3) !important;
}

.ant-btn-primary:hover {
  background: linear-gradient(135deg, #29b6f6, #0288d1) !important;
  box-shadow: 0 6px 20px rgba(79, 195, 247, 0.4) !important;
}

/* 滑块样式 */
.ant-slider-rail {
  background: rgba(255, 255, 255, 0.2) !important;
}

.ant-slider-track {
  background: linear-gradient(90deg, #4fc3f7, #29b6f6) !important;
}

.ant-slider-handle {
  border: 2px solid #4fc3f7 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(79, 195, 247, 0.3) !important;
}

/* 输入框样式 */
.ant-input, .ant-input-number {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

.ant-input:focus, .ant-input-number:focus {
  border-color: #4fc3f7 !important;
  box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2) !important;
}

/* 状态指示器样式 */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-indicator.running {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-indicator.waiting {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-indicator.error {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* 动画效果 */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.pulse {
  animation: pulse 1.5s infinite;
}
